<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta http-equiv="Pragma" content="no-cache"> 
	<meta http-equiv="Cache-Control" content="no-cache"> 
	<meta http-equiv="Expires" content="0"> 
	<title>CLOCK</title>
	<link rel="stylesheet" type="text/css" href="../js/easyui/themes/bootstrap/easyui.css">
	<link rel="stylesheet" type="text/css" href="../js/easyui/themes/icon.css">
	<script type="text/javascript" src="../js/easyui/jquery.min.js"></script>
	<script type="text/javascript" src="../js/easyui/jquery.easyui.min.js"></script>
	<script type="text/javascript" src="../js/extEasyUI.js?v=201305241044" charset="utf-8"></script>
	<script type="text/javascript" src="../js/extJquery.js?v=201305301341" charset="utf-8"></script>

	
	<script type="text/javascript">
	
		
		$(function() {
			
			now();
			
		});
				
		function now() {
			
			$.messager.progress();
			
			$.ajax({ 
		        type: "post", 
                url: '../boss/clock.do',
                dataType: "json",
                success: function (data) {
                		if(data.success) {
                			$('#clock').val(data.data);
                		} else {
                			$('#clock').val(data.message);
                		}
                		
                		$.messager.progress('close');
                }
			});
			
		}
		
	</script>
	
	
</head>
<body>

	<div style="margin:10px 0;"></div>

	<div class="easyui-panel" title="读取授时信息" style="width:600px">
		
		<div style="margin:5px 10px;">
		
		<input id="clock" type="text" value="" style="width:100%">
		
		</div>
		
		<div style="margin:5px 10px;">
		
		<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-reload'" style="width:120px" onclick="now()">读取信息</a>
			    
		</div>
		
	</div>


</body>
</html>